package cn.edu.stu.syllabus.oa.detail;

import java.util.List;

import cn.edu.stu.syllabus.base.BasePresenter;
import cn.edu.stu.syllabus.base.BaseView;
import cn.edu.stu.syllabus.base.IStorable;
import cn.edu.stu.syllabus.repository.oaFile.local.OaFileEntry;

/**
 * Created by daidaijie on 2017/3/18.
 */

public interface OaDetailContract {

    interface Presenter extends BasePresenter, IStorable {
        void starOaInfo();

        void unstarOaInfo();

        void loadOaFiles();

        boolean isStarOaInfo();
    }

    interface View extends BaseView<Presenter> {
        void setOaFilesHeader(boolean isShow);

        void showOaInfoContent(String content);

        void showOaFiles(List<OaFileEntry> oaFileEntries);

        void showLoadingError();

        void showLoading();
    }
}
